﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Week3_1_Entity
{
    /// <summary>
    /// 订单详情
    /// </summary>
    [Table("OrderGoods")]
    public class OrderGoods
    {
        [Key]
        public int OGid { get; set; }//订单详情ID
        public string? GCode { get; set; }//商品编码
        public string? OCode { get; set; }//订单编码
        public int BuyCount {  get; set; }//购买数量
        public decimal SumPrice {  get; set; }//小计
        public int Uid {  get; set; }

    }
}
